Add flag to waypoint to let the writer know thta we made up a waypoint name.
authorrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 2 Feb 2005 18:06:40 +0000 (18:06 +0000)
committerrobertl <robertl@f51c46e8-681c-474f-0cfe-069cfd0219fb>
Wed, 2 Feb 2005 18:06:40 +0000 (18:06 +0000)
gpsbabel/defs.h
gpsbabel/route.c

index 7d8e89afc407516e7886cca01ec9492773448261..f4d520907b07630e9a36cb7d05b31f2c6a71f4a0 100644 (file)
@@ -196,6 +196,7 @@ typedef struct {
        char *url;
        char *url_link_text;
        int icon_descr_is_dynamic;
+       int shortname_is_synthetic;
        const char *icon_descr;
        time_t creation_time;   /* standardized in UTC/GMT */
        int centiseconds;       /* Optional hundredths of a second. */
index 4f3b8242801460673a06adb12c5653ab8238cd21..b06ce2bb813f0f1d975abcf88b787a19ddce3c02 100644 (file)
@@ -104,6 +104,7 @@ route_add_wpt(route_head *rte, waypoint *wpt)
                char tmpnam[10];
                snprintf(tmpnam, sizeof(tmpnam), "RPT%03d",rte_waypts);
                wpt->shortname = xstrdup(tmpnam);
+               wpt->shortname_is_synthetic = 1;
        }
 }